#include "myhead.h" 
#include "def.h"
char* promptStr="minishell>";

void errhandle(char* msg)
{
	perror(msg);
	exit(1);
}
void printPrompt()
{
	if (write(STDOUT_FILENO, promptStr, strlen(promptStr))!=strlen(promptStr))
	{
		errhandle("cannot write to stdout");
	}
}
void printShell(char* params[], int paramNumber)
{
	if(paramNumber==1)
	{
		printf("\n");
	}
	else
	{

	char *out = params[1];
	printf("%s\n",out);
	}
}
